package model.basicas;

public class DecrescimosImpostoDeRenda extends DecrescimoFolhaPagamento{

	public DecrescimosImpostoDeRenda(){
		super();
		
	}

	@Override
	public double calcularDecrescimo() {
		if(this.salario.getValor() <= 1257.13){
			
			this.valor = valor+0;
		}
		
		else{
			
			if(this.salario.getValor()> 1257.13 &&  this.salario.getValor() <= 2512.08){
			
			this.valor = (valor +(this.salario.getValor() * 0.15))-188.57;
			
		}}
		
		if(this.salario.getValor()>2512.08){
			
			this.valor = (valor + (this.salario.getValor()*0.275))-502.58;
			
			
		}
		return this.valor;
	}
	
}
